home *** CD-ROM | disk | FTP | other *** search
/ Network Supervisor's Toolkit / Network Supervisor's Toolkit.iso / tools / lu62 / port / state1.h < prev    next >
Text File  |  1996-07-10  |  11KB  |  300 lines

  1. /* #include "pparm.h"    »áαá¼ÑΓαδ Σπ¡¬µ¿⌐-»α¿¼¿Γ¿ó«ó */
  2. #define Attach_lu                  0x2100
  3. #define Detach_lu                  0x2200
  4. #define ASCII                      0
  5. #define EBCDIC                     1
  6. #define Allocate                   1
  7. #define Confirm                    3
  8. #define COnfirmed                  4
  9. #define Deallocate                 5
  10. #define Flush                      6
  11. #define Get_attributes             7
  12. #define Post_on_receipt            9
  13. #define Prepare_to_receive         10
  14. #define Receive_and_wait           11
  15. #define Receive_immediate          12
  16. #define Request_to_send            14
  17. #define Send_data                  15
  18. #define Send_error                 16
  19. #define Test                       18
  20. #define mc_confirm                 15
  21. #define mc_Confirmed               16
  22. #define mc_deallocate              17
  23. #define mc_flush                   18
  24. #define mc_get_attributes          19
  25. #define mc_post_on_receive         20
  26. #define mc_receive_immediate       21
  27. #define mc_request_to_send         22
  28. #define mc_send_data               23
  29. #define mc_send_error              24
  30. #define mc_test                    25
  31. #define TP_STARTED                 0x2400
  32. #define TP_ENDED                   0x2500
  33. #define CONVERT                    0x1a00
  34. #define initialize_session_limit   26
  35. #define chanqe_session_limit       27
  36. #define set_lucb                   28
  37. #define set_partner_lu             29
  38. #define Set_mode                   30
  39. #define set_mode_option            31
  40. #define set_transaction_program    32
  41. #define set_privileged_function    33
  42. #define set_resource_supported     34
  43. #define SET_SYNC_LEVEL_SUPPORTED   35
  44. #define set_mc_function_supported  36
  45. #define set_cplu_capability        37
  46. #define get_lucb                   38
  47. #define get_partner_lu             39
  48. #define Get_mode                   40
  49. #define get_mode_option            41
  50. #define get_transaction_program    42
  51. #define get_privileged_function    43
  52. #define get_resource_supported     44
  53. #define get_cplu_capability        45
  54. #define list_partner_lu            46
  55. #define list_mode_option           47
  56. #define List_mode                  48
  57. #define list_lu_option             49
  58. #define list_transaction_program   50
  59. #define process_session_limit      51
  60. #define activate_session           52
  61. #define syncpt                     53
  62. #define backout                    54
  63. #define get_type                   55
  64. #define Wait                       56
  65. /*
  66. ¥Γ¿ º¡áτÑ¡¿∩ ¿ß»«½∞ºπεΓß∩ »α¿ ó맮óÑ »áαá¼ÑΓα«ó
  67.    ó ßΓαπ¬Γπαáσ
  68. */
  69. #define Service_component          57
  70. #define TP                         58
  71. #define Basic_conversation         59
  72. #define Mapped_conversation        60
  73. #define mc_allocate                61
  74. #define mc_prepare_to_receive      62
  75. #define mc_receive_and_wait        63
  76. #define rest_session_limit         64
  77. #define list_sync_level_supported  65
  78. #define list_privileged_function   66
  79. #define list_resource_supported    67
  80. #define list_mc_supported_lu       68
  81. #define list_cplu_capability           69
  82. #define list_mc_function_supported_tp  70
  83. #define own                            71
  84. #define other                          72
  85. #define WHEN_SESSION_ALLOCATED         73
  86. #define DELAYED_ALLOCATION_PERMITED    74
  87. #define Immediate                      75
  88. #define NONE                           0
  89. #define same                           77
  90. #define pgm                            78
  91. #define No                             0
  92. #define YES                            1
  93. #define Sync_level                     81
  94. #define Local                          82
  95. #define lng                            83
  96. #define SHORT                          84
  97. #define posted                         85
  98. #define request_to_send_received       86
  99. #define ll                             87
  100. #define buffer                         88
  101. #define BASED                          89
  102. #define MAPPED                         90
  103. #define abend_prog                     91
  104. #define abend_svc                      92
  105. #define abend_timer                    93
  106. #define prog                           94
  107. #define SVC                            95
  108. /*  ¥Γ¿ º¡áτÑ¡¿∩ ¿ß»«½∞ºπεΓß∩ »α¿ ó맮óÑ
  109.      fsm_conversation
  110. */
  111. #define ATTACH                          96
  112. #define PREP_TO_RCV_FLUSH               97
  113. #define PREP_TO_RCV_CONFIRM_SH         197
  114. #define PREP_TO_RCV_CONFIRM_LG         198
  115. #define PREP_TO_RCV_DEFER               99
  116. #define send_indicator                  100
  117. #define confirm_indicator               101
  118. #define confirm_send_ind                102
  119. #define confirm_dealloc_ind             103
  120. #define program_error_rc                104
  121. #define service_error_rc                105
  122. #define Dealloc_normal_rc               106
  123. #define Dealloc_abend_rc                107
  124. #define Deallocate_flush                108
  125. #define Deallocate_confirm              109
  126. #define Deallocate_defer                110
  127. #define Deallocate_abend                111
  128. #define Deallocate_local                112
  129. #define Deallocated_ind                 113
  130. #define RESOURCE_FAILURE_RC             114
  131. #define ALLOCATION_ERROR_RC             115
  132. /*
  133.    ¿¼Ñ¡á ß«ßΓ«∩¡¿⌐ áóΓ«¼áΓá
  134.      fsm_conversation
  135. */
  136. #define RESET                           116
  137. #define SEND                            117
  138. #define Rcv                             118
  139. #define rcvd_confirm                    119
  140. #define rcvd_confirm_send               120
  141. #define rcvd_confirm_deall              121
  142. #define deall_defer                     122
  143. #define pend_deall                      123
  144. #define END_CONV                        124
  145. /*
  146.    ç¡áτÑ¡¿∩ ¬«ñ«ó ó«ºóαáΓá ,»ÑαÑñáóáѼδσ ó
  147.    ó«ºóαáΘáѼδσ »áαá¼ÑΓαáσ
  148. */
  149. #define  OK                              0
  150. #define  PORT_ABENDED                    0xf003
  151. #define  PORT_BUSY                       0xf002
  152. #define  PORT_DISABLED                   0xf001
  153. #define  ALLOCATION_ERROR                0x0003
  154. #define  PARAMETER_ERROR                 127
  155. #define  CONV_FAILURE_NO_RETRY            0x0010
  156. #define  CONV_FAILURE_RETRY               0x000f
  157. #define  backed_out                      128
  158. #define  deallocate_normal               129
  159. #define  deallocate_abend_prog           130
  160. #define  deallocate_abend_svc            131
  161. #define  deallocate_abend_timer          132
  162. #define  prog_error_no_trunc             133
  163. #define  prog_error_trunc                134
  164. #define  prog_error_purging              135
  165. #define  RESOURCE_FAILURE_NO_RETRY       136
  166. #define  RESOURCE_FAILURE_RETRY          137
  167. #define  UNSUCCESSFUL                    138
  168. #define  posting_not_activ               139
  169. #define  svc_error_no_trunc              140
  170. #define  svc_error_purging               141
  171. #define  svc_error_trunc                 142
  172. #define  ALLOCATION_FAILURE_NO_RETRY     4
  173. #define  ALLOCATION_FAILURE_RETRY        5
  174. #define  SYNC_LEVEL_NOT_SUPPORTED        145
  175. /* invalid_lu_mode = allocation_failure_no_retry */
  176. #define  INVALID_LU_NAME                 4
  177. /* invalid_mode_name = unknown_partner_mode */
  178. #define  INVALID_MODE_NAME               0x00000018
  179. #define  ok_data                         148
  180. #define  ok_not_data                     149
  181. #define  session_not_immediately_avaliab 150
  182. #define  DEALLOC_CONFIRM_BAD_STATE       0x00000053
  183.  
  184. /*  ¥Γ¿ º¡áτÑ¡¿∩ ¿ß»«½∞ºπεΓß∩ ó áóΓ«¼áΓÑ
  185.      fsm_error_or_failure
  186. */
  187. #define  NO_RQS                           151
  188. #define  RCVD_ERROR                       152
  189. #define  CONV_FAILURE_PROTOCOL_ERROR      153
  190. #define  CONV_FAILURE_SON                 154
  191. #define  ALLOCATE_FAILURE_RETRY           155
  192. #define  ALLOCATE_FAILURE_NO_RETRY        156
  193. #define  SYNC_LEVEL_NOT_SUPPORTED_BY_LU   157
  194. #define  ALLOCATE_ERROR                   158
  195. /*
  196.  * ê¼Ñ¡á ¬«¼»«¡Ñ¡Γ ñ½∩ «í¼Ñ¡á ß««íΘÑ¡¿∩¼¿
  197.  */
  198. #define  PS                               159
  199. #define  HS                               160
  200. #define  RM                               161
  201. #define  LNS                              162
  202. #define  Receive_data                     163
  203. #define  Receive_error                    164
  204. #define  Rsp_to_request_to_send           165
  205. /*
  206.  * fsm_error
  207.  */
  208. #define  CONV_FAIL_PROTOCOL               166
  209. #define  CONV_FAIL_SON                    167
  210. #define  ALLOC_FAIL_RETRY                 168
  211. #define  ALLOC_FAIL_NO_RETRY              169
  212. #define  SYNC_LEVEL_NOT_SUPPTD            170
  213. /*
  214.    ¥Γ¿ º¡áτÑ¡¿∩ ¿ß»«½∞ºπεΓß∩ »α¿
  215.    «íαáí«Γ¬Ñ »α¼¿Γ¿ó«ó
  216.  */
  217. #define deactivate_session                172
  218. #define list_mc_function_lu               173
  219. /*
  220.    session_activation_polarity
  221. */
  222. #define first_speaker                     174
  223. #define bidder                            175
  224. /*
  225.    rm_session_activated
  226. */
  227. #define activation_failure_no_retry       176
  228. #define activation_failure_retry          177
  229. #define lu_mode_session_limit_exceeded    178
  230. /*
  231.    rm_deactivation_session
  232.  */
  233. #define cleanup                           179
  234. #define NORMAL                            180
  235. /*
  236.  * ç¡áτÑ¡¿∩ ¬«ñ«ó ºá»¿ßÑ⌐, »ÑαÑñáóáѼδσ «Γ
  237.  * PS ¬ RM
  238.  */
  239. #define DEALLOCATE_RCB                    181
  240. #define TERMINATE_PS                      182
  241. #define ALLOCATE_RCB                      183
  242. #define NO_ATTACH                         184
  243. #define NOT_END_OF_DATA                   185
  244. #define UNSUC_NO_RETRY                    186
  245. #define UNSUC_RETRY                       193
  246. #define CHANGE_SESSION                    187
  247. #define RM_ACTIVATE_SESSION               189
  248. #define RM_DEACTIVATE_SESSION             190
  249. #define UNBIND_PROTOCOL_ERROR             191
  250. #define GET_SESSION                       192
  251. #define PARAMETR_CHECK                    0x0001
  252. #define INCOMPLETE                        0xf004
  253. #define BAD_TP_ID                         0x00000001
  254. #define BAD_CONV_ID                       0x00000002
  255. #define BAD_LL                            195
  256. #define NO_SUSPEND                        196
  257. /* Half session state */
  258. #define IN_USE                            0
  259. #define FREE                              1
  260. /*
  261.  * Next follows values for parm TYPE for subroutine
  262.  * SENDHS
  263.  */
  264. #define Fmh                               1
  265. /*
  266.  * MAX_LEN used for buffer management func.
  267.  */
  268. #define  MAX_LEN                          255
  269. /* FMHRCV - FMH-5 or FMH-7 received */
  270. #define FMHRCV                            0x00ff
  271. /* SESSINI - session is ready */
  272. #define SESSINI                           0x01ff
  273. /* CLSSESP - session was closed by primary LU */
  274. #define CLSSESP                           0x02ff
  275. /* CLSSESS - session was closed by secondary LU */
  276. #define CLSSESS                           0x03ff
  277. /* DR - Data is ready for receive */
  278. #define DR                                0x04ff
  279. #define POSTOPEN                          0x05ff
  280. /*
  281.  * Values for WHAT_RECEIVED variable.
  282.  */
  283. #define DATA               0
  284. #define Data_COMPLETE      1
  285. #define Data_INCOMPLETE    2
  286. #define ConfirM            3
  287. #define Confirm_SEND       4
  288. #define Confirm_DEALLOCATE 5
  289. #define SenD               6
  290. /*                          */
  291. #define LU62         200
  292. #define MAX_SEG      2048
  293. #define MAX_RU       2017
  294. /******* Trace codes ********/
  295. #define INPROC   1
  296. #define RETPROC  2
  297. #define CALLPROC 3
  298. #define GREC     4
  299. /****************************/
  300.